import request from '@/utils/request'

// 查询客服管理列表
export function listTcustomer(query) {
  return request({
    url: '/tcustomer/tcustomer/list',
    method: 'get',
    params: query
  })
}

export function RepeatPassword(id) {
  return request({
    url: '/tcustomer/tcustomer/repeat/'+id,
    method: 'get',
  })
}

// 查询客服管理详细
export function getTcustomer(customerId) {
  return request({
    url: '/tcustomer/tcustomer/' + customerId,
    method: 'get'
  })
}

// 新增客服管理
export function addTcustomer(data) {
  return request({
    url: '/tcustomer/tcustomer',
    method: 'post',
    data: data
  })
}

// 修改客服管理
export function updateTcustomer(data) {
  return request({
    url: '/tcustomer/tcustomer',
    method: 'put',
    data: data
  })
}

// 删除客服管理
export function delTcustomer(customerId) {
  return request({
    url: '/tcustomer/tcustomer/' + customerId,
    method: 'delete'
  })
}

export function getMessage(id){
  return request({
    url: '/tcustomer/tcustomer/getMessage',
    method: 'get',
    params:id
  })
}